{#协助详情页面#}
<div id="assist_task_list" class="easyui-layout layout easyui-fluid" style="width: 100%;height: 100%">
    {#协助信息#}
    <div id="assist_head" data-options="region:'north',split:true,border:false" style="width: 100%;height: 40%">
        <div {#class="page-headers"#} style="margin-top: 10px;height:auto">
            <h3 class="pull-left"
                style="font-family:Microsoft YaHei,serif;margin-top:10px;background-color: #cce6ff;">
                {{ assistance.name }}
            </h3>
            <button id="btn_entry_catalog" style="margin-left: 20px;margin-top: 10px">文件管理</button>
            <button id="btn_entry_apps" style="margin-left: 20px;margin-top: 10px">应用管理</button>
            <ul class="pull-right breadcrumb"
                style="margin-top: 10px;font-size: 22px;background-color: #cce6ff;padding: inherit">
                <li>
                    <button id="assist_quit">退出协助</button>
                </li>
                <li id="device_alive" style="color: #00ee00;font-weight: bold;display: none">设备在线</li>
                <li id="assist_state">协助状态：{{ assistance.state }}</li>
                <li>步数：{{ assistance.totalStep }}</li>
                <li>开始：{{ assistance.startAt }}</li>
                <li>结束：{{ assistance.endAt }}</li>
            </ul>
        </div>
        {#运行CMD命令 调用探针接口#}
        <div id="cmd_probe" style="display: block;margin-top: 10px;">
            <br>
            <a>CMD:</a><input id="cmd_input" type="text" style="margin-left: 20px;font-size: 15px;padding: 2px;width: 100px"/>
            <button id="btn_execute_cmd" style="margin-left: 20px;font-size: 15px;padding: 2px">运行</button>
            <br>
            <a>调用接口:</a><input id="probe_input" type="text"
                               style="margin-left: 20px;margin-top: 5px;font-size: 15px;padding: 2px;width: 100px"/>
            <button id="btn_execute_probe" style="margin-left: 20px;font-size: 15px;padding: 2px">运行</button>
        </div>
        <div style="display: block;margin-top: 5px;">
            <button id="btn_get_network" style="margin-left:5px;font-size: 15px;padding: 2px">获取网络配置</button>
            <a id="network_state"></a>
            <table class="reference table table-bordered" id="table_network" style="display: none;">
                <tbody><tr>
                    <th>dns</th>
                    <th>gateway</th>
                    <th>ip</th>
                    <th>网络类型</th>
                    <th>ssid</th>
                    <th>无线mac</th>
                    <th>网络强度</th>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                </tbody></table>
        </div>
        {#系统配置#}
        <div style="display: block;margin-top: 5px;">
            <button id="btn_get_system" style="margin-left:5px;font-size: 15px;padding: 2px">获取系统配置</button>
            <a id="system_state" ></a>
            <table class="reference table table-bordered" id="table_system" style="display: none">

                <tbody><tr>
                    <th>型号</th>
                    <th>系统版本</th>
                    <th>最大运存</th>
                    <th>安卓SDK</th>
                    <th>sd卡总空间</th>
                    <th>sd卡剩余空间</th>
                    <th>无线mc</th>
                    <th>display</th>
                    <th>fingerprint</th>
                    <th>mac</th>
                    <th>厂商</th>
                    <th>分辨率</th>
                    <th>屏幕密度</th>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                </tbody></table>
        </div>
    </div>
    {#任务列表#}
    <div id="assist_center" data-options="region:'center',split:true,border:false" style="width: 100%;height: auto;top: 10%;">
        <div data-options="region:'center'">
            <table style="width: 100%">
                <tr style="width: 100%">
                    <!--列表内容-->
                    <td class="xh-datagrid" style="height:700px">{{ List }}</td>
                </tr>
            </table>
        </div>
    </div>
    {#任务执行结果#}
    <div id="task_result" data-options="region:'east',collapsed:true,title:'运行结果',border:false"
         style="width: 50%;height: 100%;font-size: medium">
        <span style="font-size: medium">返回内容：</span><br><br>
        <div id="task_content" style="margin-left:3px;width: 100%">
            {#<textarea disabled="disabled"
                      style="width: 100%;height: 200px;font-size: medium;font-family: inherit"></textarea>#}
        </div>
        {#<br><span style="font-size: medium;">返回资源：</span><br><br>#}
        <div id="task_resources" style="margin-left: 3px;margin-top: 60px;">

        </div>
    </div>
    {#指令编辑执行#}
    <div id="add_task_dialog" class="easyui-dialog" title="下发任务" data-options="resizable:true"
         style="width:500px;height:300px;padding:10px 20px;font-size: medium"
         closed="true">
        <table>
            <tr>
                <td>
                    <!--表单内容-->
                    <form id="xh_form" class="xh-form" action="{{ url('assist/Service/distributeTask') }}" method="post"
                          target="submitForm" style="display: none;">
                        <div class="xh-area-form">
                            {{ Form }}
                        </div>
                        <div class="xh-area-button" style="padding-left: 75px;">
                            {% if FormButton is defined %}{{ FormButton }}{% endif %}
                        </div>
                    </form>
                    <iframe name="submitForm" frameborder="0" class="xh-hidden"></iframe>
                </td>
            </tr>
            <tr>
                <button id="bt_add_content" class="btn btn-default" style="background-color:#1abc9c">添加指令</button>
            </tr>
        </table>
    </div>
    {#指令列表#}
    <div id="instruction_list_dialog" class="easyui-dialog" title="指令列表"
         style="width:600px;height:400px;padding:10px 20px;font-size: medium"
         closed="true">
        <iframe id="instruction_frame" src="{{ url('/assist/instructions') }}" style="width: 100%;height: 85%">
        </iframe>
        <button id="bt_add_list" class="btn btn-default">添加</button>
        <button id="bt_cancel_content" class="btn btn-default"
                onclick="javascript:$('#instruction_list_dialog').dialog('close')">取消
        </button>
    </div>
</div>
</div>
<style>
    table.reference th {
        color: #fff;
        background-color: #555;
        border: 1px solid #555;
        font-size: 12px;
        padding: 3px;
        vertical-align:text-top;
        text-align: left;
        width: 100px;
    }
    table.reference {
        border-collapse: collapse;
        width: 100%;
        margin-bottom: 4px;
        margin-top: 4px;
    }
</style>